<div class="ibox">
	<div class="row searchLineWrap">
	<form class="form-horizontal" method="post" action="${cxt!}/admin/customer/list" id="searchForm">
	
	  <div class="col-md-12"> 
	  <div class="row">
	    <div class="col-md-3">
	      <div class="form-group">
	         <label  class="col-md-4 control-label">${_res["customer.telephone"]}</label>
	         <div class="col-md-8">
	            <input type="text" class="form-control" name="customer.l_telephone" placeholder="${_res['customer.telephone']}" value="${paramMap['customer.l_telephone']}"/>
	         </div>
	       </div>
	    </div>
	    
	    <div class="col-md-3">
	          <div class="form-group">
	            <label class="col-md-5 control-label">${_res["customer.status"]}</label>
	          <div class="col-md-7">
	             <#dict type="select"  name="customer.f_status"  dictCode="COMMON_STATUS" defaultValue="${paramMap['customer.f_status']}"/>
	         </div>
	       </div>
	    </div>
	    
	    <div class="col-md-3">
	      <div class="form-group">
	         <label  class="col-md-5 control-label">${_res["system.startdate"]}</label>
	         <div class="col-md-7">
	            <input type="text" class="laydate-icon form-control layer-date" onclick="laydate()" name="customer.gt_regtime"  placeholder="${_res['system.startdate']}" value="${paramMap['customer.gt_regtime']}"/>
	         </div>
	       </div>
	    </div>
	   
	  </div>
	  <div class="row">
	   <div class="col-md-3">
	         <div class="form-group">
	           <label class="col-md-4 control-label">${_res["customer.roleid"]}</label>
	           <div class="col-md-8">
	               <#dict type="select" name="customer.f_roleid"  table="customer_role" filedName="name" filedValue="id"   defaultValue="${paramMap['customer.f_roleid']}"/>
	           </div>
	       </div>
	     </div>
	   
	    <div class="col-md-3">
	      <div class="form-group">
	         <label  class="col-md-5 control-label">${_res["customer.authenticationstatus"]}</label>
	         <div class="col-md-7">
	          	<#dict type="select"  name="customer.f_authenticationstatus"  dictCode="CUSTOMER_AUTHENTICATIONSTATUS" defaultValue="${paramMap['customer.f_authenticationstatus']}"/>
	         </div>
	       </div>
	    </div>
	    
	    <div class="col-md-3">
	      <div class="form-group">
	         <label class="col-md-5 control-label">${_res["system.enddate"]}</label>
	         <div class="col-md-7">
	             <input type="text" class="laydate-icon form-control layer-date" onclick="laydate()" name="customer.le_regtime"   placeholder="${_res['system.enddate']}" value="${paramMap['customer.le_regtime']}"/>
	         </div>
	       </div>
	     </div>
	    
	    <div class="col-md-2">
	        <div class="form-group">
	        	<label class="col-md-5 control-label"></label>
	         	<div class="col-md-7">
	          			 <button type="button" class="btn btn-primary pull-right" onclick="ajaxForm('content','searchForm')">
	         				 <i class="fa fa-search m-l-sm m-r-xs"></i>${_res["system.search"]}
	         			</button>
	         	</div>
	         
	        </div>
	    </div>
	  </div>
	  </div>
	 </form>
	</div>
	</div>
	
	
	<div id="dataTable" class="ibox row searchLineWrap">
	<table class="table table-bordered table-hover dataTables-example">
	    <thead>
	        <tr>
	            <th>${_res["customer.showname"]}</th>
	            <th>${_res["customer.telephone"]}</th>
	            <th style="width: 9%;">${_res["customer.country"]}/${_res["customer.city"]}</th>
	            <th style="width: 6%;">${_res["customer.roleid"]}</th>
	            <th style="width: 10%;">${_res["customer.regtime"]}</th>
	            <th>${_res["customer.lastlogintime"]}</th>
	            <th style="width: 6%;">${_res["customer.gender"]}</th>
	            <th style="width: 6%;">${_res["customer.status"]}</th>
	            <th>${_res["customer.authenticationstatus"]}</th>
	            <th style="width: 10%;">${_res["system.operator"]}</th>
	          </tr>
	    </thead>
	    <tbody>
	        <%for (customer in customerList!){%> 
	         <tr class="gradeC">
	            <td>${customer.showname!}</td> 
	            <td>${customer.telephone!}</td> 
	            <td ><#dict type="lable" table="country_region" filedName="name" filedValue="id" value="${customer.customeraddress_country!}" />/${customer.city!}</td>
	            <td><#dict type="lable"  value="${customer.roleid!}"  table="customer_role" filedName="name" filedValue="id" /></td>
	            <td>${customer.regtime!,dateFormat="yyyy-MM-dd HH:mm"}</td>
	            <td>${customer.lastlogintime!,dateFormat="yyyy-MM-dd HH:mm"}</td>
	            <td><#dict type="lable"  value="${customer.gender!}"  dictCode="GENDER" /></td>
	            <td><#dict type="lable"  value="${customer.status!}"  dictCode="COMMON_STATUS" /></td>
	            <td><#dict type="lable"  value="${customer.authenticationstatus!}"  dictCode="CUSTOMER_AUTHENTICATIONSTATUS" /></td>
	            <td>
	            <% if(hasPrivilegeUrl("user_view")){ %>
	               <button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/admin/customer/detail/${customer.id!}')">${_res["system.view"]}</button>
	            <%}
	            	
	               		var status=customer.status;
	               		if(status=="0"){
	               			if(hasPrivilegeUrl("user_freeze")){
	               	%> 
	               <button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/admin/customer/freeze/${customer.id!}')">${_res["system.freeze"]}</button>
	               	<%		
	               			}
	               		}else{
	               			if(hasPrivilegeUrl("unfreeze")){
	                %>
	               <button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/admin/customer/unfreeze/${customer.id!}')">${_res["system.unfreeze"]}</button>
	            	<%}}%>
	            	
	            	<%if(customer.categoryid==3){
	            		if(customer.recommendstatus=='0'){ %>
	            		<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/admin/customer/disrecommend/${customer.id!}')">${_res["customer.disrecommend"]}</button>
	            	<%}else{%>
	            		<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/admin/customer/enrecommend/${customer.id!}')">${_res["customer.enrecommend"]}</button>
	            	<%}}%>
	            </td>
	       </tr>
	       <%}%>
	    </tbody>
	</table>
	<div id="splitPageDiv">
		<#page formId="searchForm"/>
	</div>
	<#nav />
	</div>
